// Lean compiler output
// Module: Leanpkg.Manifest
// Imports: Init Leanpkg.Toml Leanpkg.LeanVersion
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
lean_object* l_Leanpkg_Manifest_fromToml___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_Name_toString___closed__1;
lean_object* l_Toml_parse(lean_object*, lean_object*);
extern lean_object* l_Lean_initFn____x40_Lean_Data_Options___hyg_528____closed__6;
lean_object* l_Leanpkg_Source_fromToml___closed__3;
lean_object* l_Leanpkg_Manifest_fromToml_match__4___rarg(lean_object*, lean_object*);
lean_object* l_Leanpkg_Manifest_fromToml_match__1(lean_object*);
lean_object* l_Leanpkg_Source_fromToml_match__4___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Leanpkg_Manifest_fromToml___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Leanpkg_Manifest_leanVersion___default;
extern lean_object* l_Lean_instInhabitedParserDescr___closed__1;
lean_object* l_Leanpkg_Manifest_fromToml___closed__3;
lean_object* l_Leanpkg_Manifest_fromToml_match__6___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Leanpkg_Source_fromToml_match__1___rarg(lean_object*, lean_object*, lean_object*);
lean_object* lean_string_append(lean_object*, lean_object*);
lean_object* l_Leanpkg_Source_fromToml_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Leanpkg_Manifest_fromToml_match__7(lean_object*);
lean_object* l_List_mapM___at_Leanpkg_Manifest_fromToml___spec__1___closed__1;
lean_object* l_Leanpkg_Source_toToml_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Leanpkg_Manifest_fromToml___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Leanpkg_Manifest_fromToml___boxed(lean_object*);
lean_object* l_Leanpkg_Manifest_fromToml___closed__1;
lean_object* l_Leanpkg_Manifest_fromToml(lean_object*);
lean_object* l_Leanpkg_Source_fromToml_match__3(lean_object*);
lean_object* l_Leanpkg_Source_fromToml___closed__2;
lean_object* l_Toml_Value_lookup(lean_object*, lean_object*);
lean_object* l_Leanpkg_Source_fromToml___boxed(lean_object*);
lean_object* l_Leanpkg_Manifest_effectivePath___boxed(lean_object*);
lean_object* l_Leanpkg_Source_fromToml___closed__1;
lean_object* l_Leanpkg_Manifest_fromFile_match__1___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Leanpkg_Manifest_fromToml_match__6(lean_object*);
lean_object* l_Leanpkg_Source_toToml(lean_object*);
lean_object* l_Leanpkg_Manifest_fromToml_match__2(lean_object*);
lean_object* l_Leanpkg_leanpkgTomlFn;
lean_object* l_List_mapM___at_Leanpkg_Manifest_fromToml___spec__1(lean_object*);
lean_object* l_Leanpkg_Manifest_fromToml___closed__2;
lean_object* l_Leanpkg_Manifest_fromToml___lambda__1___closed__2;
lean_object* l_Leanpkg_Manifest_timeout___default;
lean_object* l_Leanpkg_Manifest_fromFile___boxed(lean_object*, lean_object*);
lean_object* l_Leanpkg_Manifest_fromToml___lambda__1___closed__1;
lean_object* l_Leanpkg_Manifest_fromToml___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_initFn____x40_Lean_Parser_Extra___hyg_938____closed__15;
lean_object* l_Leanpkg_Manifest_fromFile(lean_object*, lean_object*);
lean_object* l_Leanpkg_Source_fromToml(lean_object*);
lean_object* l_Leanpkg_Manifest_fromToml___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Leanpkg_Manifest_fromFile___closed__1;
lean_object* l_Leanpkg_Manifest_fromToml_match__4(lean_object*);
lean_object* l_IO_FS_readFile___at_Lean_Parser_testParseFile___spec__1(lean_object*, lean_object*);
lean_object* l_Leanpkg_Source_fromToml___closed__4;
lean_object* l_Leanpkg_Manifest_fromToml_match__5(lean_object*);
lean_object* l_Leanpkg_Manifest_fromFile_match__1(lean_object*);
lean_object* l_Leanpkg_Manifest_fromToml_match__5___rarg(lean_object*, lean_object*, lean_object*);
extern lean_object* l_Leanpkg_leanVersionString;
lean_object* l_Leanpkg_Source_fromToml_match__4(lean_object*);
lean_object* l_Leanpkg_Source_fromToml_match__3___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Leanpkg_Source_toToml_match__1(lean_object*);
lean_object* l_Leanpkg_Manifest_fromToml_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Leanpkg_Manifest_fromToml_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Leanpkg_Source_fromToml_match__2(lean_object*);
lean_object* l_Leanpkg_leanpkgTomlFn___closed__1;
lean_object* l_Leanpkg_Manifest_effectivePath(lean_object*);
lean_object* l_Leanpkg_Source_toToml___boxed(lean_object*);
lean_object* l_Leanpkg_Manifest_fromToml_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Leanpkg_Manifest_path___default;
lean_object* l_Leanpkg_Source_fromToml_match__1(lean_object*);
lean_object* l_Leanpkg_Manifest_fromToml___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Leanpkg_Manifest_fromToml_match__7___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Leanpkg_Manifest_dependencies___default;
lean_object* l_Leanpkg_Manifest_fromToml_match__3(lean_object*);
lean_object* l_Leanpkg_Source_fromToml_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_4; lean_object* x_5; 
lean_dec(x_3);
x_4 = lean_ctor_get(x_1, 0);
lean_inc(x_4);
lean_dec(x_1);
x_5 = lean_apply_1(x_2, x_4);
return x_5;
}
else
{
lean_object* x_6; 
lean_dec(x_2);
x_6 = lean_apply_1(x_3, x_1);
return x_6;
}
}
}
lean_object* l_Leanpkg_Source_fromToml_match__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Leanpkg_Source_fromToml_match__1___rarg), 3, 0);
return x_2;
}
}
lean_object* l_Leanpkg_Source_fromToml_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_5; lean_object* x_6; 
lean_dec(x_4);
lean_dec(x_3);
x_5 = lean_box(0);
x_6 = lean_apply_1(x_2, x_5);
return x_6;
}
else
{
lean_object* x_7; 
lean_dec(x_2);
x_7 = lean_ctor_get(x_1, 0);
lean_inc(x_7);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_8; lean_object* x_9; 
lean_dec(x_4);
lean_dec(x_1);
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
lean_dec(x_7);
x_9 = lean_apply_1(x_3, x_8);
return x_9;
}
else
{
lean_object* x_10; 
lean_dec(x_7);
lean_dec(x_3);
x_10 = lean_apply_1(x_4, x_1);
return x_10;
}
}
}
}
lean_object* l_Leanpkg_Source_fromToml_match__2(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Leanpkg_Source_fromToml_match__2___rarg), 4, 0);
return x_2;
}
}
lean_object* l_Leanpkg_Source_fromToml_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_4; lean_object* x_5; 
lean_dec(x_3);
x_4 = lean_ctor_get(x_1, 0);
lean_inc(x_4);
lean_dec(x_1);
x_5 = lean_apply_1(x_2, x_4);
return x_5;
}
else
{
lean_object* x_6; 
lean_dec(x_2);
x_6 = lean_apply_1(x_3, x_1);
return x_6;
}
}
}
lean_object* l_Leanpkg_Source_fromToml_match__3(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Leanpkg_Source_fromToml_match__3___rarg), 3, 0);
return x_2;
}
}
lean_object* l_Leanpkg_Source_fromToml_match__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_4; lean_object* x_5; 
lean_dec(x_3);
x_4 = lean_ctor_get(x_1, 0);
lean_inc(x_4);
lean_dec(x_1);
x_5 = lean_apply_1(x_2, x_4);
return x_5;
}
else
{
lean_object* x_6; 
lean_dec(x_2);
x_6 = lean_apply_1(x_3, x_1);
return x_6;
}
}
}
lean_object* l_Leanpkg_Source_fromToml_match__4(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Leanpkg_Source_fromToml_match__4___rarg), 3, 0);
return x_2;
}
}
static lean_object* _init_l_Leanpkg_Source_fromToml___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("rev");
return x_1;
}
}
static lean_object* _init_l_Leanpkg_Source_fromToml___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("branch");
return x_1;
}
}
static lean_object* _init_l_Leanpkg_Source_fromToml___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("path");
return x_1;
}
}
static lean_object* _init_l_Leanpkg_Source_fromToml___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("git");
return x_1;
}
}
lean_object* l_Leanpkg_Source_fromToml(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; 
x_79 = l_Leanpkg_Source_fromToml___closed__3;
x_80 = l_Toml_Value_lookup(x_1, x_79);
x_81 = l_Leanpkg_Source_fromToml___closed__4;
x_82 = l_Toml_Value_lookup(x_1, x_81);
if (lean_obj_tag(x_80) == 0)
{
if (lean_obj_tag(x_82) == 0)
{
lean_object* x_83; 
x_83 = lean_box(0);
return x_83;
}
else
{
lean_object* x_84; lean_object* x_85; 
x_84 = lean_ctor_get(x_82, 0);
lean_inc(x_84);
lean_dec(x_82);
x_85 = lean_box(0);
x_2 = x_85;
x_3 = x_84;
goto block_78;
}
}
else
{
uint8_t x_86; 
x_86 = !lean_is_exclusive(x_80);
if (x_86 == 0)
{
lean_object* x_87; 
x_87 = lean_ctor_get(x_80, 0);
if (lean_obj_tag(x_87) == 0)
{
lean_object* x_88; lean_object* x_89; 
x_88 = lean_ctor_get(x_87, 0);
lean_inc(x_88);
lean_dec(x_87);
x_89 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_89, 0, x_88);
if (lean_obj_tag(x_82) == 0)
{
lean_ctor_set(x_80, 0, x_89);
return x_80;
}
else
{
uint8_t x_90; 
lean_free_object(x_80);
x_90 = !lean_is_exclusive(x_82);
if (x_90 == 0)
{
lean_object* x_91; 
x_91 = lean_ctor_get(x_82, 0);
lean_ctor_set(x_82, 0, x_89);
x_2 = x_82;
x_3 = x_91;
goto block_78;
}
else
{
lean_object* x_92; lean_object* x_93; 
x_92 = lean_ctor_get(x_82, 0);
lean_inc(x_92);
lean_dec(x_82);
x_93 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_93, 0, x_89);
x_2 = x_93;
x_3 = x_92;
goto block_78;
}
}
}
else
{
lean_free_object(x_80);
lean_dec(x_87);
if (lean_obj_tag(x_82) == 0)
{
lean_object* x_94; 
x_94 = lean_box(0);
return x_94;
}
else
{
lean_object* x_95; lean_object* x_96; 
x_95 = lean_ctor_get(x_82, 0);
lean_inc(x_95);
lean_dec(x_82);
x_96 = lean_box(0);
x_2 = x_96;
x_3 = x_95;
goto block_78;
}
}
}
else
{
lean_object* x_97; 
x_97 = lean_ctor_get(x_80, 0);
lean_inc(x_97);
lean_dec(x_80);
if (lean_obj_tag(x_97) == 0)
{
lean_object* x_98; lean_object* x_99; 
x_98 = lean_ctor_get(x_97, 0);
lean_inc(x_98);
lean_dec(x_97);
x_99 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_99, 0, x_98);
if (lean_obj_tag(x_82) == 0)
{
lean_object* x_100; 
x_100 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_100, 0, x_99);
return x_100;
}
else
{
lean_object* x_101; lean_object* x_102; lean_object* x_103; 
x_101 = lean_ctor_get(x_82, 0);
lean_inc(x_101);
if (lean_is_exclusive(x_82)) {
 lean_ctor_release(x_82, 0);
 x_102 = x_82;
} else {
 lean_dec_ref(x_82);
 x_102 = lean_box(0);
}
if (lean_is_scalar(x_102)) {
 x_103 = lean_alloc_ctor(1, 1, 0);
} else {
 x_103 = x_102;
}
lean_ctor_set(x_103, 0, x_99);
x_2 = x_103;
x_3 = x_101;
goto block_78;
}
}
else
{
lean_dec(x_97);
if (lean_obj_tag(x_82) == 0)
{
lean_object* x_104; 
x_104 = lean_box(0);
return x_104;
}
else
{
lean_object* x_105; lean_object* x_106; 
x_105 = lean_ctor_get(x_82, 0);
lean_inc(x_105);
lean_dec(x_82);
x_106 = lean_box(0);
x_2 = x_106;
x_3 = x_105;
goto block_78;
}
}
}
}
block_78:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_4 = lean_ctor_get(x_3, 0);
lean_inc(x_4);
lean_dec(x_3);
x_5 = l_Leanpkg_Source_fromToml___closed__1;
x_6 = l_Toml_Value_lookup(x_1, x_5);
if (lean_obj_tag(x_6) == 0)
{
lean_dec(x_4);
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_7; 
x_7 = lean_box(0);
return x_7;
}
else
{
uint8_t x_8; 
x_8 = !lean_is_exclusive(x_2);
if (x_8 == 0)
{
return x_2;
}
else
{
lean_object* x_9; lean_object* x_10; 
x_9 = lean_ctor_get(x_2, 0);
lean_inc(x_9);
lean_dec(x_2);
x_10 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_10, 0, x_9);
return x_10;
}
}
}
else
{
uint8_t x_11; 
x_11 = !lean_is_exclusive(x_6);
if (x_11 == 0)
{
lean_object* x_12; 
x_12 = lean_ctor_get(x_6, 0);
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_13 = lean_ctor_get(x_12, 0);
lean_inc(x_13);
lean_dec(x_12);
x_14 = l_Leanpkg_Source_fromToml___closed__2;
x_15 = l_Toml_Value_lookup(x_1, x_14);
if (lean_obj_tag(x_15) == 0)
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_16; lean_object* x_17; 
x_16 = lean_box(0);
x_17 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_17, 0, x_4);
lean_ctor_set(x_17, 1, x_13);
lean_ctor_set(x_17, 2, x_16);
lean_ctor_set(x_6, 0, x_17);
return x_6;
}
else
{
uint8_t x_18; 
lean_dec(x_13);
lean_free_object(x_6);
lean_dec(x_4);
x_18 = !lean_is_exclusive(x_2);
if (x_18 == 0)
{
return x_2;
}
else
{
lean_object* x_19; lean_object* x_20; 
x_19 = lean_ctor_get(x_2, 0);
lean_inc(x_19);
lean_dec(x_2);
x_20 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_20, 0, x_19);
return x_20;
}
}
}
else
{
uint8_t x_21; 
x_21 = !lean_is_exclusive(x_15);
if (x_21 == 0)
{
lean_object* x_22; 
x_22 = lean_ctor_get(x_15, 0);
if (lean_obj_tag(x_22) == 0)
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_23; lean_object* x_24; 
x_23 = lean_ctor_get(x_22, 0);
lean_inc(x_23);
lean_dec(x_22);
lean_ctor_set(x_15, 0, x_23);
x_24 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_24, 0, x_4);
lean_ctor_set(x_24, 1, x_13);
lean_ctor_set(x_24, 2, x_15);
lean_ctor_set(x_6, 0, x_24);
return x_6;
}
else
{
uint8_t x_25; 
lean_free_object(x_15);
lean_dec(x_22);
lean_dec(x_13);
lean_free_object(x_6);
lean_dec(x_4);
x_25 = !lean_is_exclusive(x_2);
if (x_25 == 0)
{
return x_2;
}
else
{
lean_object* x_26; lean_object* x_27; 
x_26 = lean_ctor_get(x_2, 0);
lean_inc(x_26);
lean_dec(x_2);
x_27 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_27, 0, x_26);
return x_27;
}
}
}
else
{
lean_free_object(x_15);
lean_dec(x_22);
lean_dec(x_13);
lean_free_object(x_6);
lean_dec(x_4);
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_28; 
x_28 = lean_box(0);
return x_28;
}
else
{
uint8_t x_29; 
x_29 = !lean_is_exclusive(x_2);
if (x_29 == 0)
{
return x_2;
}
else
{
lean_object* x_30; lean_object* x_31; 
x_30 = lean_ctor_get(x_2, 0);
lean_inc(x_30);
lean_dec(x_2);
x_31 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_31, 0, x_30);
return x_31;
}
}
}
}
else
{
lean_object* x_32; 
x_32 = lean_ctor_get(x_15, 0);
lean_inc(x_32);
lean_dec(x_15);
if (lean_obj_tag(x_32) == 0)
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_33 = lean_ctor_get(x_32, 0);
lean_inc(x_33);
lean_dec(x_32);
x_34 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_34, 0, x_33);
x_35 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_35, 0, x_4);
lean_ctor_set(x_35, 1, x_13);
lean_ctor_set(x_35, 2, x_34);
lean_ctor_set(x_6, 0, x_35);
return x_6;
}
else
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; 
lean_dec(x_32);
lean_dec(x_13);
lean_free_object(x_6);
lean_dec(x_4);
x_36 = lean_ctor_get(x_2, 0);
lean_inc(x_36);
if (lean_is_exclusive(x_2)) {
 lean_ctor_release(x_2, 0);
 x_37 = x_2;
} else {
 lean_dec_ref(x_2);
 x_37 = lean_box(0);
}
if (lean_is_scalar(x_37)) {
 x_38 = lean_alloc_ctor(1, 1, 0);
} else {
 x_38 = x_37;
}
lean_ctor_set(x_38, 0, x_36);
return x_38;
}
}
else
{
lean_dec(x_32);
lean_dec(x_13);
lean_free_object(x_6);
lean_dec(x_4);
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_39; 
x_39 = lean_box(0);
return x_39;
}
else
{
lean_object* x_40; lean_object* x_41; lean_object* x_42; 
x_40 = lean_ctor_get(x_2, 0);
lean_inc(x_40);
if (lean_is_exclusive(x_2)) {
 lean_ctor_release(x_2, 0);
 x_41 = x_2;
} else {
 lean_dec_ref(x_2);
 x_41 = lean_box(0);
}
if (lean_is_scalar(x_41)) {
 x_42 = lean_alloc_ctor(1, 1, 0);
} else {
 x_42 = x_41;
}
lean_ctor_set(x_42, 0, x_40);
return x_42;
}
}
}
}
}
else
{
lean_free_object(x_6);
lean_dec(x_12);
lean_dec(x_4);
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_43; 
x_43 = lean_box(0);
return x_43;
}
else
{
uint8_t x_44; 
x_44 = !lean_is_exclusive(x_2);
if (x_44 == 0)
{
return x_2;
}
else
{
lean_object* x_45; lean_object* x_46; 
x_45 = lean_ctor_get(x_2, 0);
lean_inc(x_45);
lean_dec(x_2);
x_46 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_46, 0, x_45);
return x_46;
}
}
}
}
else
{
lean_object* x_47; 
x_47 = lean_ctor_get(x_6, 0);
lean_inc(x_47);
lean_dec(x_6);
if (lean_obj_tag(x_47) == 0)
{
lean_object* x_48; lean_object* x_49; lean_object* x_50; 
x_48 = lean_ctor_get(x_47, 0);
lean_inc(x_48);
lean_dec(x_47);
x_49 = l_Leanpkg_Source_fromToml___closed__2;
x_50 = l_Toml_Value_lookup(x_1, x_49);
if (lean_obj_tag(x_50) == 0)
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_51; lean_object* x_52; lean_object* x_53; 
x_51 = lean_box(0);
x_52 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_52, 0, x_4);
lean_ctor_set(x_52, 1, x_48);
lean_ctor_set(x_52, 2, x_51);
x_53 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_53, 0, x_52);
return x_53;
}
else
{
lean_object* x_54; lean_object* x_55; lean_object* x_56; 
lean_dec(x_48);
lean_dec(x_4);
x_54 = lean_ctor_get(x_2, 0);
lean_inc(x_54);
if (lean_is_exclusive(x_2)) {
 lean_ctor_release(x_2, 0);
 x_55 = x_2;
} else {
 lean_dec_ref(x_2);
 x_55 = lean_box(0);
}
if (lean_is_scalar(x_55)) {
 x_56 = lean_alloc_ctor(1, 1, 0);
} else {
 x_56 = x_55;
}
lean_ctor_set(x_56, 0, x_54);
return x_56;
}
}
else
{
lean_object* x_57; lean_object* x_58; 
x_57 = lean_ctor_get(x_50, 0);
lean_inc(x_57);
if (lean_is_exclusive(x_50)) {
 lean_ctor_release(x_50, 0);
 x_58 = x_50;
} else {
 lean_dec_ref(x_50);
 x_58 = lean_box(0);
}
if (lean_obj_tag(x_57) == 0)
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; 
x_59 = lean_ctor_get(x_57, 0);
lean_inc(x_59);
lean_dec(x_57);
if (lean_is_scalar(x_58)) {
 x_60 = lean_alloc_ctor(1, 1, 0);
} else {
 x_60 = x_58;
}
lean_ctor_set(x_60, 0, x_59);
x_61 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_61, 0, x_4);
lean_ctor_set(x_61, 1, x_48);
lean_ctor_set(x_61, 2, x_60);
x_62 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_62, 0, x_61);
return x_62;
}
else
{
lean_object* x_63; lean_object* x_64; lean_object* x_65; 
lean_dec(x_58);
lean_dec(x_57);
lean_dec(x_48);
lean_dec(x_4);
x_63 = lean_ctor_get(x_2, 0);
lean_inc(x_63);
if (lean_is_exclusive(x_2)) {
 lean_ctor_release(x_2, 0);
 x_64 = x_2;
} else {
 lean_dec_ref(x_2);
 x_64 = lean_box(0);
}
if (lean_is_scalar(x_64)) {
 x_65 = lean_alloc_ctor(1, 1, 0);
} else {
 x_65 = x_64;
}
lean_ctor_set(x_65, 0, x_63);
return x_65;
}
}
else
{
lean_dec(x_58);
lean_dec(x_57);
lean_dec(x_48);
lean_dec(x_4);
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_66; 
x_66 = lean_box(0);
return x_66;
}
else
{
lean_object* x_67; lean_object* x_68; lean_object* x_69; 
x_67 = lean_ctor_get(x_2, 0);
lean_inc(x_67);
if (lean_is_exclusive(x_2)) {
 lean_ctor_release(x_2, 0);
 x_68 = x_2;
} else {
 lean_dec_ref(x_2);
 x_68 = lean_box(0);
}
if (lean_is_scalar(x_68)) {
 x_69 = lean_alloc_ctor(1, 1, 0);
} else {
 x_69 = x_68;
}
lean_ctor_set(x_69, 0, x_67);
return x_69;
}
}
}
}
else
{
lean_dec(x_47);
lean_dec(x_4);
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_70; 
x_70 = lean_box(0);
return x_70;
}
else
{
lean_object* x_71; lean_object* x_72; lean_object* x_73; 
x_71 = lean_ctor_get(x_2, 0);
lean_inc(x_71);
if (lean_is_exclusive(x_2)) {
 lean_ctor_release(x_2, 0);
 x_72 = x_2;
} else {
 lean_dec_ref(x_2);
 x_72 = lean_box(0);
}
if (lean_is_scalar(x_72)) {
 x_73 = lean_alloc_ctor(1, 1, 0);
} else {
 x_73 = x_72;
}
lean_ctor_set(x_73, 0, x_71);
return x_73;
}
}
}
}
}
else
{
lean_dec(x_3);
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_74; 
x_74 = lean_box(0);
return x_74;
}
else
{
uint8_t x_75; 
x_75 = !lean_is_exclusive(x_2);
if (x_75 == 0)
{
return x_2;
}
else
{
lean_object* x_76; lean_object* x_77; 
x_76 = lean_ctor_get(x_2, 0);
lean_inc(x_76);
lean_dec(x_2);
x_77 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_77, 0, x_76);
return x_77;
}
}
}
}
}
}
lean_object* l_Leanpkg_Source_fromToml___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Leanpkg_Source_fromToml(x_1);
lean_dec(x_1);
return x_2;
}
}
lean_object* l_Leanpkg_Source_toToml_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_5; lean_object* x_6; 
lean_dec(x_4);
lean_dec(x_3);
x_5 = lean_ctor_get(x_1, 0);
lean_inc(x_5);
lean_dec(x_1);
x_6 = lean_apply_1(x_2, x_5);
return x_6;
}
else
{
lean_object* x_7; 
lean_dec(x_2);
x_7 = lean_ctor_get(x_1, 2);
lean_inc(x_7);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; 
lean_dec(x_4);
x_8 = lean_ctor_get(x_1, 0);
lean_inc(x_8);
x_9 = lean_ctor_get(x_1, 1);
lean_inc(x_9);
lean_dec(x_1);
x_10 = lean_apply_2(x_3, x_8, x_9);
return x_10;
}
else
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
lean_dec(x_3);
x_11 = lean_ctor_get(x_1, 0);
lean_inc(x_11);
x_12 = lean_ctor_get(x_1, 1);
lean_inc(x_12);
lean_dec(x_1);
x_13 = lean_ctor_get(x_7, 0);
lean_inc(x_13);
lean_dec(x_7);
x_14 = lean_apply_3(x_4, x_11, x_12, x_13);
return x_14;
}
}
}
}
lean_object* l_Leanpkg_Source_toToml_match__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Leanpkg_Source_toToml_match__1___rarg), 4, 0);
return x_2;
}
}
lean_object* l_Leanpkg_Source_toToml(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc(x_2);
x_3 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_3, 0, x_2);
x_4 = l_Leanpkg_Source_fromToml___closed__3;
x_5 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_5, 0, x_4);
lean_ctor_set(x_5, 1, x_3);
x_6 = lean_box(0);
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_5);
lean_ctor_set(x_7, 1, x_6);
x_8 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_8, 0, x_7);
return x_8;
}
else
{
lean_object* x_9; 
x_9 = lean_ctor_get(x_1, 2);
if (lean_obj_tag(x_9) == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_10 = lean_ctor_get(x_1, 0);
x_11 = lean_ctor_get(x_1, 1);
lean_inc(x_10);
x_12 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_12, 0, x_10);
x_13 = l_Leanpkg_Source_fromToml___closed__4;
x_14 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_14, 0, x_13);
lean_ctor_set(x_14, 1, x_12);
lean_inc(x_11);
x_15 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_15, 0, x_11);
x_16 = l_Leanpkg_Source_fromToml___closed__1;
x_17 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_17, 0, x_16);
lean_ctor_set(x_17, 1, x_15);
x_18 = lean_box(0);
x_19 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_19, 0, x_17);
lean_ctor_set(x_19, 1, x_18);
x_20 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_20, 0, x_14);
lean_ctor_set(x_20, 1, x_19);
x_21 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_21, 0, x_20);
return x_21;
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; 
x_22 = lean_ctor_get(x_1, 0);
x_23 = lean_ctor_get(x_1, 1);
x_24 = lean_ctor_get(x_9, 0);
lean_inc(x_22);
x_25 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_25, 0, x_22);
x_26 = l_Leanpkg_Source_fromToml___closed__4;
x_27 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_27, 0, x_26);
lean_ctor_set(x_27, 1, x_25);
lean_inc(x_24);
x_28 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_28, 0, x_24);
x_29 = l_Leanpkg_Source_fromToml___closed__2;
x_30 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_30, 0, x_29);
lean_ctor_set(x_30, 1, x_28);
lean_inc(x_23);
x_31 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_31, 0, x_23);
x_32 = l_Leanpkg_Source_fromToml___closed__1;
x_33 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_33, 0, x_32);
lean_ctor_set(x_33, 1, x_31);
x_34 = lean_box(0);
x_35 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_35, 0, x_33);
lean_ctor_set(x_35, 1, x_34);
x_36 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_36, 0, x_30);
lean_ctor_set(x_36, 1, x_35);
x_37 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_37, 0, x_27);
lean_ctor_set(x_37, 1, x_36);
x_38 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_38, 0, x_37);
return x_38;
}
}
}
}
lean_object* l_Leanpkg_Source_toToml___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Leanpkg_Source_toToml(x_1);
lean_dec(x_1);
return x_2;
}
}
static lean_object* _init_l_Leanpkg_Manifest_leanVersion___default() {
_start:
{
lean_object* x_1; 
x_1 = l_Leanpkg_leanVersionString;
return x_1;
}
}
static lean_object* _init_l_Leanpkg_Manifest_timeout___default() {
_start:
{
lean_object* x_1; 
x_1 = lean_box(0);
return x_1;
}
}
static lean_object* _init_l_Leanpkg_Manifest_path___default() {
_start:
{
lean_object* x_1; 
x_1 = lean_box(0);
return x_1;
}
}
static lean_object* _init_l_Leanpkg_Manifest_dependencies___default() {
_start:
{
lean_object* x_1; 
x_1 = lean_box(0);
return x_1;
}
}
lean_object* l_Leanpkg_Manifest_effectivePath(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_ctor_get(x_1, 4);
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; 
x_3 = l_Lean_Name_toString___closed__1;
return x_3;
}
else
{
lean_object* x_4; 
x_4 = lean_ctor_get(x_2, 0);
lean_inc(x_4);
return x_4;
}
}
}
lean_object* l_Leanpkg_Manifest_effectivePath___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Leanpkg_Manifest_effectivePath(x_1);
lean_dec(x_1);
return x_2;
}
}
lean_object* l_Leanpkg_Manifest_fromToml_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_5; lean_object* x_6; 
lean_dec(x_4);
lean_dec(x_2);
x_5 = lean_box(0);
x_6 = lean_apply_1(x_3, x_5);
return x_6;
}
else
{
lean_object* x_7; 
lean_dec(x_3);
x_7 = lean_ctor_get(x_1, 0);
lean_inc(x_7);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_8; lean_object* x_9; 
lean_dec(x_4);
lean_dec(x_1);
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
lean_dec(x_7);
x_9 = lean_apply_1(x_2, x_8);
return x_9;
}
else
{
lean_object* x_10; 
lean_dec(x_7);
lean_dec(x_2);
x_10 = lean_apply_1(x_4, x_1);
return x_10;
}
}
}
}
lean_object* l_Leanpkg_Manifest_fromToml_match__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Leanpkg_Manifest_fromToml_match__1___rarg), 4, 0);
return x_2;
}
}
lean_object* l_Leanpkg_Manifest_fromToml_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_5; lean_object* x_6; 
lean_dec(x_4);
lean_dec(x_2);
x_5 = lean_box(0);
x_6 = lean_apply_1(x_3, x_5);
return x_6;
}
else
{
lean_object* x_7; 
lean_dec(x_3);
x_7 = lean_ctor_get(x_1, 0);
lean_inc(x_7);
if (lean_obj_tag(x_7) == 1)
{
lean_object* x_8; lean_object* x_9; 
lean_dec(x_4);
lean_dec(x_1);
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
lean_dec(x_7);
x_9 = lean_apply_1(x_2, x_8);
return x_9;
}
else
{
lean_object* x_10; 
lean_dec(x_7);
lean_dec(x_2);
x_10 = lean_apply_1(x_4, x_1);
return x_10;
}
}
}
}
lean_object* l_Leanpkg_Manifest_fromToml_match__2(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Leanpkg_Manifest_fromToml_match__2___rarg), 4, 0);
return x_2;
}
}
lean_object* l_Leanpkg_Manifest_fromToml_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_5; lean_object* x_6; 
lean_dec(x_4);
lean_dec(x_2);
x_5 = lean_box(0);
x_6 = lean_apply_1(x_3, x_5);
return x_6;
}
else
{
lean_object* x_7; 
lean_dec(x_3);
x_7 = lean_ctor_get(x_1, 0);
lean_inc(x_7);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_8; lean_object* x_9; 
lean_dec(x_4);
lean_dec(x_1);
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
lean_dec(x_7);
x_9 = lean_apply_1(x_2, x_8);
return x_9;
}
else
{
lean_object* x_10; 
lean_dec(x_7);
lean_dec(x_2);
x_10 = lean_apply_1(x_4, x_1);
return x_10;
}
}
}
}
lean_object* l_Leanpkg_Manifest_fromToml_match__3(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Leanpkg_Manifest_fromToml_match__3___rarg), 4, 0);
return x_2;
}
}
lean_object* l_Leanpkg_Manifest_fromToml_match__4___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_ctor_get(x_1, 0);
lean_inc(x_3);
x_4 = lean_ctor_get(x_1, 1);
lean_inc(x_4);
lean_dec(x_1);
x_5 = lean_apply_2(x_2, x_3, x_4);
return x_5;
}
}
lean_object* l_Leanpkg_Manifest_fromToml_match__4(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Leanpkg_Manifest_fromToml_match__4___rarg), 2, 0);
return x_2;
}
}
lean_object* l_Leanpkg_Manifest_fromToml_match__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 3)
{
lean_object* x_4; lean_object* x_5; 
lean_dec(x_3);
x_4 = lean_ctor_get(x_1, 0);
lean_inc(x_4);
lean_dec(x_1);
x_5 = lean_apply_1(x_2, x_4);
return x_5;
}
else
{
lean_object* x_6; 
lean_dec(x_2);
x_6 = lean_apply_1(x_3, x_1);
return x_6;
}
}
}
lean_object* l_Leanpkg_Manifest_fromToml_match__5(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Leanpkg_Manifest_fromToml_match__5___rarg), 3, 0);
return x_2;
}
}
lean_object* l_Leanpkg_Manifest_fromToml_match__6___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_4; lean_object* x_5; 
lean_dec(x_3);
x_4 = lean_ctor_get(x_1, 0);
lean_inc(x_4);
lean_dec(x_1);
x_5 = lean_apply_1(x_2, x_4);
return x_5;
}
else
{
lean_object* x_6; 
lean_dec(x_2);
x_6 = lean_apply_1(x_3, x_1);
return x_6;
}
}
}
lean_object* l_Leanpkg_Manifest_fromToml_match__6(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Leanpkg_Manifest_fromToml_match__6___rarg), 3, 0);
return x_2;
}
}
lean_object* l_Leanpkg_Manifest_fromToml_match__7___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_4; lean_object* x_5; 
lean_dec(x_3);
x_4 = lean_ctor_get(x_1, 0);
lean_inc(x_4);
lean_dec(x_1);
x_5 = lean_apply_1(x_2, x_4);
return x_5;
}
else
{
lean_object* x_6; 
lean_dec(x_2);
x_6 = lean_apply_1(x_3, x_1);
return x_6;
}
}
}
lean_object* l_Leanpkg_Manifest_fromToml_match__7(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Leanpkg_Manifest_fromToml_match__7___rarg), 3, 0);
return x_2;
}
}
static lean_object* _init_l_List_mapM___at_Leanpkg_Manifest_fromToml___spec__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(0);
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
lean_object* l_List_mapM___at_Leanpkg_Manifest_fromToml___spec__1(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; 
x_2 = l_List_mapM___at_Leanpkg_Manifest_fromToml___spec__1___closed__1;
return x_2;
}
else
{
uint8_t x_3; 
x_3 = !lean_is_exclusive(x_1);
if (x_3 == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_4 = lean_ctor_get(x_1, 0);
x_5 = lean_ctor_get(x_1, 1);
x_6 = lean_ctor_get(x_4, 0);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 1);
lean_inc(x_7);
lean_dec(x_4);
x_8 = l_Leanpkg_Source_fromToml(x_7);
lean_dec(x_7);
if (lean_obj_tag(x_8) == 0)
{
lean_object* x_9; 
lean_dec(x_6);
lean_free_object(x_1);
lean_dec(x_5);
x_9 = lean_box(0);
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_10 = lean_ctor_get(x_8, 0);
lean_inc(x_10);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_11, 0, x_6);
lean_ctor_set(x_11, 1, x_10);
x_12 = l_List_mapM___at_Leanpkg_Manifest_fromToml___spec__1(x_5);
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_13; 
lean_dec(x_11);
lean_free_object(x_1);
x_13 = lean_box(0);
return x_13;
}
else
{
uint8_t x_14; 
x_14 = !lean_is_exclusive(x_12);
if (x_14 == 0)
{
lean_object* x_15; 
x_15 = lean_ctor_get(x_12, 0);
lean_ctor_set(x_1, 1, x_15);
lean_ctor_set(x_1, 0, x_11);
lean_ctor_set(x_12, 0, x_1);
return x_12;
}
else
{
lean_object* x_16; lean_object* x_17; 
x_16 = lean_ctor_get(x_12, 0);
lean_inc(x_16);
lean_dec(x_12);
lean_ctor_set(x_1, 1, x_16);
lean_ctor_set(x_1, 0, x_11);
x_17 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_17, 0, x_1);
return x_17;
}
}
}
}
else
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_18 = lean_ctor_get(x_1, 0);
x_19 = lean_ctor_get(x_1, 1);
lean_inc(x_19);
lean_inc(x_18);
lean_dec(x_1);
x_20 = lean_ctor_get(x_18, 0);
lean_inc(x_20);
x_21 = lean_ctor_get(x_18, 1);
lean_inc(x_21);
lean_dec(x_18);
x_22 = l_Leanpkg_Source_fromToml(x_21);
lean_dec(x_21);
if (lean_obj_tag(x_22) == 0)
{
lean_object* x_23; 
lean_dec(x_20);
lean_dec(x_19);
x_23 = lean_box(0);
return x_23;
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; 
x_24 = lean_ctor_get(x_22, 0);
lean_inc(x_24);
lean_dec(x_22);
x_25 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_25, 0, x_20);
lean_ctor_set(x_25, 1, x_24);
x_26 = l_List_mapM___at_Leanpkg_Manifest_fromToml___spec__1(x_19);
if (lean_obj_tag(x_26) == 0)
{
lean_object* x_27; 
lean_dec(x_25);
x_27 = lean_box(0);
return x_27;
}
else
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_28 = lean_ctor_get(x_26, 0);
lean_inc(x_28);
if (lean_is_exclusive(x_26)) {
 lean_ctor_release(x_26, 0);
 x_29 = x_26;
} else {
 lean_dec_ref(x_26);
 x_29 = lean_box(0);
}
x_30 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_30, 0, x_25);
lean_ctor_set(x_30, 1, x_28);
if (lean_is_scalar(x_29)) {
 x_31 = lean_alloc_ctor(1, 1, 0);
} else {
 x_31 = x_29;
}
lean_ctor_set(x_31, 0, x_30);
return x_31;
}
}
}
}
}
}
static lean_object* _init_l_Leanpkg_Manifest_fromToml___lambda__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("dependencies");
return x_1;
}
}
static lean_object* _init_l_Leanpkg_Manifest_fromToml___lambda__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(0);
x_2 = l_List_mapM___at_Leanpkg_Manifest_fromToml___spec__1(x_1);
return x_2;
}
}
lean_object* l_Leanpkg_Manifest_fromToml___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_8; 
x_7 = l_Leanpkg_Manifest_fromToml___lambda__1___closed__1;
x_8 = l_Toml_Value_lookup(x_1, x_7);
if (lean_obj_tag(x_8) == 0)
{
lean_object* x_9; 
x_9 = l_Leanpkg_Manifest_fromToml___lambda__1___closed__2;
if (lean_obj_tag(x_9) == 0)
{
lean_object* x_10; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_10 = lean_box(0);
return x_10;
}
else
{
uint8_t x_11; 
x_11 = !lean_is_exclusive(x_9);
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; 
x_12 = lean_ctor_get(x_9, 0);
x_13 = lean_alloc_ctor(0, 6, 0);
lean_ctor_set(x_13, 0, x_2);
lean_ctor_set(x_13, 1, x_3);
lean_ctor_set(x_13, 2, x_4);
lean_ctor_set(x_13, 3, x_5);
lean_ctor_set(x_13, 4, x_6);
lean_ctor_set(x_13, 5, x_12);
lean_ctor_set(x_9, 0, x_13);
return x_9;
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_14 = lean_ctor_get(x_9, 0);
lean_inc(x_14);
lean_dec(x_9);
x_15 = lean_alloc_ctor(0, 6, 0);
lean_ctor_set(x_15, 0, x_2);
lean_ctor_set(x_15, 1, x_3);
lean_ctor_set(x_15, 2, x_4);
lean_ctor_set(x_15, 3, x_5);
lean_ctor_set(x_15, 4, x_6);
lean_ctor_set(x_15, 5, x_14);
x_16 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_16, 0, x_15);
return x_16;
}
}
}
else
{
lean_object* x_17; 
x_17 = lean_ctor_get(x_8, 0);
lean_inc(x_17);
lean_dec(x_8);
if (lean_obj_tag(x_17) == 3)
{
lean_object* x_18; lean_object* x_19; 
x_18 = lean_ctor_get(x_17, 0);
lean_inc(x_18);
lean_dec(x_17);
x_19 = l_List_mapM___at_Leanpkg_Manifest_fromToml___spec__1(x_18);
if (lean_obj_tag(x_19) == 0)
{
lean_object* x_20; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_20 = lean_box(0);
return x_20;
}
else
{
uint8_t x_21; 
x_21 = !lean_is_exclusive(x_19);
if (x_21 == 0)
{
lean_object* x_22; lean_object* x_23; 
x_22 = lean_ctor_get(x_19, 0);
x_23 = lean_alloc_ctor(0, 6, 0);
lean_ctor_set(x_23, 0, x_2);
lean_ctor_set(x_23, 1, x_3);
lean_ctor_set(x_23, 2, x_4);
lean_ctor_set(x_23, 3, x_5);
lean_ctor_set(x_23, 4, x_6);
lean_ctor_set(x_23, 5, x_22);
lean_ctor_set(x_19, 0, x_23);
return x_19;
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; 
x_24 = lean_ctor_get(x_19, 0);
lean_inc(x_24);
lean_dec(x_19);
x_25 = lean_alloc_ctor(0, 6, 0);
lean_ctor_set(x_25, 0, x_2);
lean_ctor_set(x_25, 1, x_3);
lean_ctor_set(x_25, 2, x_4);
lean_ctor_set(x_25, 3, x_5);
lean_ctor_set(x_25, 4, x_6);
lean_ctor_set(x_25, 5, x_24);
x_26 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_26, 0, x_25);
return x_26;
}
}
}
else
{
lean_object* x_27; 
lean_dec(x_17);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_27 = lean_box(0);
return x_27;
}
}
}
}
lean_object* l_Leanpkg_Manifest_fromToml___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_8; 
x_7 = l_Leanpkg_Source_fromToml___closed__3;
x_8 = l_Toml_Value_lookup(x_5, x_7);
if (lean_obj_tag(x_8) == 0)
{
lean_object* x_9; lean_object* x_10; 
x_9 = lean_box(0);
x_10 = l_Leanpkg_Manifest_fromToml___lambda__1(x_1, x_2, x_3, x_4, x_6, x_9);
return x_10;
}
else
{
uint8_t x_11; 
x_11 = !lean_is_exclusive(x_8);
if (x_11 == 0)
{
lean_object* x_12; 
x_12 = lean_ctor_get(x_8, 0);
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_12, 0);
lean_inc(x_13);
lean_dec(x_12);
lean_ctor_set(x_8, 0, x_13);
x_14 = l_Leanpkg_Manifest_fromToml___lambda__1(x_1, x_2, x_3, x_4, x_6, x_8);
return x_14;
}
else
{
lean_object* x_15; 
lean_free_object(x_8);
lean_dec(x_12);
lean_dec(x_6);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_15 = lean_box(0);
return x_15;
}
}
else
{
lean_object* x_16; 
x_16 = lean_ctor_get(x_8, 0);
lean_inc(x_16);
lean_dec(x_8);
if (lean_obj_tag(x_16) == 0)
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_17 = lean_ctor_get(x_16, 0);
lean_inc(x_17);
lean_dec(x_16);
x_18 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_18, 0, x_17);
x_19 = l_Leanpkg_Manifest_fromToml___lambda__1(x_1, x_2, x_3, x_4, x_6, x_18);
return x_19;
}
else
{
lean_object* x_20; 
lean_dec(x_16);
lean_dec(x_6);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_20 = lean_box(0);
return x_20;
}
}
}
}
}
lean_object* l_Leanpkg_Manifest_fromToml___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; 
x_6 = l_Lean_initFn____x40_Lean_Data_Options___hyg_528____closed__6;
x_7 = l_Toml_Value_lookup(x_4, x_6);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_box(0);
x_9 = l_Leanpkg_Manifest_fromToml___lambda__2(x_1, x_2, x_3, x_5, x_4, x_8);
return x_9;
}
else
{
uint8_t x_10; 
x_10 = !lean_is_exclusive(x_7);
if (x_10 == 0)
{
lean_object* x_11; 
x_11 = lean_ctor_get(x_7, 0);
if (lean_obj_tag(x_11) == 1)
{
lean_object* x_12; lean_object* x_13; 
x_12 = lean_ctor_get(x_11, 0);
lean_inc(x_12);
lean_dec(x_11);
lean_ctor_set(x_7, 0, x_12);
x_13 = l_Leanpkg_Manifest_fromToml___lambda__2(x_1, x_2, x_3, x_5, x_4, x_7);
return x_13;
}
else
{
lean_object* x_14; 
lean_free_object(x_7);
lean_dec(x_11);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
x_14 = lean_box(0);
return x_14;
}
}
else
{
lean_object* x_15; 
x_15 = lean_ctor_get(x_7, 0);
lean_inc(x_15);
lean_dec(x_7);
if (lean_obj_tag(x_15) == 1)
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_16 = lean_ctor_get(x_15, 0);
lean_inc(x_16);
lean_dec(x_15);
x_17 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_17, 0, x_16);
x_18 = l_Leanpkg_Manifest_fromToml___lambda__2(x_1, x_2, x_3, x_5, x_4, x_17);
return x_18;
}
else
{
lean_object* x_19; 
lean_dec(x_15);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
x_19 = lean_box(0);
return x_19;
}
}
}
}
}
static lean_object* _init_l_Leanpkg_Manifest_fromToml___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("package");
return x_1;
}
}
static lean_object* _init_l_Leanpkg_Manifest_fromToml___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("version");
return x_1;
}
}
static lean_object* _init_l_Leanpkg_Manifest_fromToml___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("lean_version");
return x_1;
}
}
lean_object* l_Leanpkg_Manifest_fromToml(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Leanpkg_Manifest_fromToml___closed__1;
x_3 = l_Toml_Value_lookup(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_4; 
x_4 = lean_box(0);
return x_4;
}
else
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
lean_inc(x_5);
lean_dec(x_3);
x_6 = l_Lean_initFn____x40_Lean_Parser_Extra___hyg_938____closed__15;
x_7 = l_Toml_Value_lookup(x_5, x_6);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_8; 
lean_dec(x_5);
x_8 = lean_box(0);
return x_8;
}
else
{
lean_object* x_9; 
x_9 = lean_ctor_get(x_7, 0);
lean_inc(x_9);
lean_dec(x_7);
if (lean_obj_tag(x_9) == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
lean_dec(x_9);
x_11 = l_Leanpkg_Manifest_fromToml___closed__2;
x_12 = l_Toml_Value_lookup(x_5, x_11);
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_13; 
lean_dec(x_10);
lean_dec(x_5);
x_13 = lean_box(0);
return x_13;
}
else
{
lean_object* x_14; 
x_14 = lean_ctor_get(x_12, 0);
lean_inc(x_14);
lean_dec(x_12);
if (lean_obj_tag(x_14) == 0)
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_14, 0);
lean_inc(x_15);
lean_dec(x_14);
x_16 = l_Leanpkg_Manifest_fromToml___closed__3;
x_17 = l_Toml_Value_lookup(x_5, x_16);
if (lean_obj_tag(x_17) == 0)
{
lean_object* x_18; lean_object* x_19; 
x_18 = l_Leanpkg_leanVersionString;
x_19 = l_Leanpkg_Manifest_fromToml___lambda__3(x_1, x_10, x_15, x_5, x_18);
lean_dec(x_5);
return x_19;
}
else
{
lean_object* x_20; 
x_20 = lean_ctor_get(x_17, 0);
lean_inc(x_20);
lean_dec(x_17);
if (lean_obj_tag(x_20) == 0)
{
lean_object* x_21; lean_object* x_22; 
x_21 = lean_ctor_get(x_20, 0);
lean_inc(x_21);
lean_dec(x_20);
x_22 = l_Leanpkg_Manifest_fromToml___lambda__3(x_1, x_10, x_15, x_5, x_21);
lean_dec(x_5);
return x_22;
}
else
{
lean_object* x_23; 
lean_dec(x_20);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_5);
x_23 = lean_box(0);
return x_23;
}
}
}
else
{
lean_object* x_24; 
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_5);
x_24 = lean_box(0);
return x_24;
}
}
}
else
{
lean_object* x_25; 
lean_dec(x_9);
lean_dec(x_5);
x_25 = lean_box(0);
return x_25;
}
}
}
}
}
lean_object* l_Leanpkg_Manifest_fromToml___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Leanpkg_Manifest_fromToml___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_1);
return x_7;
}
}
lean_object* l_Leanpkg_Manifest_fromToml___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Leanpkg_Manifest_fromToml___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_5);
lean_dec(x_1);
return x_7;
}
}
lean_object* l_Leanpkg_Manifest_fromToml___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Leanpkg_Manifest_fromToml___lambda__3(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_4);
lean_dec(x_1);
return x_6;
}
}
lean_object* l_Leanpkg_Manifest_fromToml___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Leanpkg_Manifest_fromToml(x_1);
lean_dec(x_1);
return x_2;
}
}
lean_object* l_Leanpkg_Manifest_fromFile_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_4; 
lean_dec(x_2);
x_4 = lean_apply_1(x_3, x_1);
return x_4;
}
else
{
lean_object* x_5; lean_object* x_6; 
lean_dec(x_3);
x_5 = lean_ctor_get(x_1, 0);
lean_inc(x_5);
lean_dec(x_1);
x_6 = lean_apply_1(x_2, x_5);
return x_6;
}
}
}
lean_object* l_Leanpkg_Manifest_fromFile_match__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Leanpkg_Manifest_fromFile_match__1___rarg), 3, 0);
return x_2;
}
}
static lean_object* _init_l_Leanpkg_Manifest_fromFile___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("cannot read manifest from ");
return x_1;
}
}
lean_object* l_Leanpkg_Manifest_fromFile(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_IO_FS_readFile___at_Lean_Parser_testParseFile___spec__1(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_4 = lean_ctor_get(x_3, 0);
lean_inc(x_4);
x_5 = lean_ctor_get(x_3, 1);
lean_inc(x_5);
lean_dec(x_3);
x_6 = l_Toml_parse(x_4, x_5);
if (lean_obj_tag(x_6) == 0)
{
uint8_t x_7; 
x_7 = !lean_is_exclusive(x_6);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_ctor_get(x_6, 0);
x_9 = l_Leanpkg_Manifest_fromToml(x_8);
lean_dec(x_8);
if (lean_obj_tag(x_9) == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_10 = l_Leanpkg_Manifest_fromFile___closed__1;
x_11 = lean_string_append(x_10, x_1);
x_12 = l_Lean_instInhabitedParserDescr___closed__1;
x_13 = lean_string_append(x_11, x_12);
x_14 = lean_alloc_ctor(18, 1, 0);
lean_ctor_set(x_14, 0, x_13);
lean_ctor_set_tag(x_6, 1);
lean_ctor_set(x_6, 0, x_14);
return x_6;
}
else
{
lean_object* x_15; 
x_15 = lean_ctor_get(x_9, 0);
lean_inc(x_15);
lean_dec(x_9);
lean_ctor_set(x_6, 0, x_15);
return x_6;
}
}
else
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_16 = lean_ctor_get(x_6, 0);
x_17 = lean_ctor_get(x_6, 1);
lean_inc(x_17);
lean_inc(x_16);
lean_dec(x_6);
x_18 = l_Leanpkg_Manifest_fromToml(x_16);
lean_dec(x_16);
if (lean_obj_tag(x_18) == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
x_19 = l_Leanpkg_Manifest_fromFile___closed__1;
x_20 = lean_string_append(x_19, x_1);
x_21 = l_Lean_instInhabitedParserDescr___closed__1;
x_22 = lean_string_append(x_20, x_21);
x_23 = lean_alloc_ctor(18, 1, 0);
lean_ctor_set(x_23, 0, x_22);
x_24 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_24, 0, x_23);
lean_ctor_set(x_24, 1, x_17);
return x_24;
}
else
{
lean_object* x_25; lean_object* x_26; 
x_25 = lean_ctor_get(x_18, 0);
lean_inc(x_25);
lean_dec(x_18);
x_26 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_26, 0, x_25);
lean_ctor_set(x_26, 1, x_17);
return x_26;
}
}
}
else
{
uint8_t x_27; 
x_27 = !lean_is_exclusive(x_6);
if (x_27 == 0)
{
return x_6;
}
else
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; 
x_28 = lean_ctor_get(x_6, 0);
x_29 = lean_ctor_get(x_6, 1);
lean_inc(x_29);
lean_inc(x_28);
lean_dec(x_6);
x_30 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_30, 0, x_28);
lean_ctor_set(x_30, 1, x_29);
return x_30;
}
}
}
else
{
uint8_t x_31; 
x_31 = !lean_is_exclusive(x_3);
if (x_31 == 0)
{
return x_3;
}
else
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; 
x_32 = lean_ctor_get(x_3, 0);
x_33 = lean_ctor_get(x_3, 1);
lean_inc(x_33);
lean_inc(x_32);
lean_dec(x_3);
x_34 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_34, 0, x_32);
lean_ctor_set(x_34, 1, x_33);
return x_34;
}
}
}
}
lean_object* l_Leanpkg_Manifest_fromFile___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Leanpkg_Manifest_fromFile(x_1, x_2);
lean_dec(x_1);
return x_3;
}
}
static lean_object* _init_l_Leanpkg_leanpkgTomlFn___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("leanpkg.toml");
return x_1;
}
}
static lean_object* _init_l_Leanpkg_leanpkgTomlFn() {
_start:
{
lean_object* x_1; 
x_1 = l_Leanpkg_leanpkgTomlFn___closed__1;
return x_1;
}
}
lean_object* initialize_Init(lean_object*);
lean_object* initialize_Leanpkg_Toml(lean_object*);
lean_object* initialize_Leanpkg_LeanVersion(lean_object*);
static bool _G_initialized = false;
lean_object* initialize_Leanpkg_Manifest(lean_object* w) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Init(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Leanpkg_Toml(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Leanpkg_LeanVersion(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Leanpkg_Source_fromToml___closed__1 = _init_l_Leanpkg_Source_fromToml___closed__1();
lean_mark_persistent(l_Leanpkg_Source_fromToml___closed__1);
l_Leanpkg_Source_fromToml___closed__2 = _init_l_Leanpkg_Source_fromToml___closed__2();
lean_mark_persistent(l_Leanpkg_Source_fromToml___closed__2);
l_Leanpkg_Source_fromToml___closed__3 = _init_l_Leanpkg_Source_fromToml___closed__3();
lean_mark_persistent(l_Leanpkg_Source_fromToml___closed__3);
l_Leanpkg_Source_fromToml___closed__4 = _init_l_Leanpkg_Source_fromToml___closed__4();
lean_mark_persistent(l_Leanpkg_Source_fromToml___closed__4);
l_Leanpkg_Manifest_leanVersion___default = _init_l_Leanpkg_Manifest_leanVersion___default();
lean_mark_persistent(l_Leanpkg_Manifest_leanVersion___default);
l_Leanpkg_Manifest_timeout___default = _init_l_Leanpkg_Manifest_timeout___default();
lean_mark_persistent(l_Leanpkg_Manifest_timeout___default);
l_Leanpkg_Manifest_path___default = _init_l_Leanpkg_Manifest_path___default();
lean_mark_persistent(l_Leanpkg_Manifest_path___default);
l_Leanpkg_Manifest_dependencies___default = _init_l_Leanpkg_Manifest_dependencies___default();
lean_mark_persistent(l_Leanpkg_Manifest_dependencies___default);
l_List_mapM___at_Leanpkg_Manifest_fromToml___spec__1___closed__1 = _init_l_List_mapM___at_Leanpkg_Manifest_fromToml___spec__1___closed__1();
lean_mark_persistent(l_List_mapM___at_Leanpkg_Manifest_fromToml___spec__1___closed__1);
l_Leanpkg_Manifest_fromToml___lambda__1___closed__1 = _init_l_Leanpkg_Manifest_fromToml___lambda__1___closed__1();
lean_mark_persistent(l_Leanpkg_Manifest_fromToml___lambda__1___closed__1);
l_Leanpkg_Manifest_fromToml___lambda__1___closed__2 = _init_l_Leanpkg_Manifest_fromToml___lambda__1___closed__2();
lean_mark_persistent(l_Leanpkg_Manifest_fromToml___lambda__1___closed__2);
l_Leanpkg_Manifest_fromToml___closed__1 = _init_l_Leanpkg_Manifest_fromToml___closed__1();
lean_mark_persistent(l_Leanpkg_Manifest_fromToml___closed__1);
l_Leanpkg_Manifest_fromToml___closed__2 = _init_l_Leanpkg_Manifest_fromToml___closed__2();
lean_mark_persistent(l_Leanpkg_Manifest_fromToml___closed__2);
l_Leanpkg_Manifest_fromToml___closed__3 = _init_l_Leanpkg_Manifest_fromToml___closed__3();
lean_mark_persistent(l_Leanpkg_Manifest_fromToml___closed__3);
l_Leanpkg_Manifest_fromFile___closed__1 = _init_l_Leanpkg_Manifest_fromFile___closed__1();
lean_mark_persistent(l_Leanpkg_Manifest_fromFile___closed__1);
l_Leanpkg_leanpkgTomlFn___closed__1 = _init_l_Leanpkg_leanpkgTomlFn___closed__1();
lean_mark_persistent(l_Leanpkg_leanpkgTomlFn___closed__1);
l_Leanpkg_leanpkgTomlFn = _init_l_Leanpkg_leanpkgTomlFn();
lean_mark_persistent(l_Leanpkg_leanpkgTomlFn);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
